package com.tang.service;


import com.tang.config.enums.OrderStatus;
import com.tang.pojo.TOrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tang
 * @since 2025-03-27
 */
public interface TOrderInfoService extends IService<TOrderInfo> {
    TOrderInfo createOrderByProductId(Long productId);
    void saveCodeUrl(String orderNo, String codeUrl);


    List<TOrderInfo> listOrderByCreateTimeDesc();

    void updateStatusByOrderNo(String orderNo, OrderStatus orderStatus);

    String getOrderStatus(String orderNo);

    List<TOrderInfo> getNoPayOrderByDuration(int minutes);

    TOrderInfo getOrderByOrderNo(String orderNo);
}
